package com.zdkj.subway.check.controller.subwayRat.submit;

import com.zdkj.subway.check.entity.Page;
import com.zdkj.subway.check.mapper.SwAuDataSubmitMapper;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * 收入审核数据提交
 */
@Slf4j
@RestController
@RequestMapping("/check")
public class SwAuDataSubmitController {

    @Resource
    SwAuDataSubmitMapper swAuDataSubmitMapper;

    /**
     * 收入审核数据提交列表查询
     * @param page
     * @param param
     * @param param
     * @return
     */
    @RequestMapping("/getSwAuDataSubmitList")
    @ApiOperation(value = "收入审核数据提交列表查询", notes = "收入审核数据提交列表查询")
    public Page getSwAuDataSubmitList(Page page,  @RequestParam Map<String,String> param){
        List<Map<String,Object>> list=swAuDataSubmitMapper.getSwAuDataSubmitList(param);
        page.setData(list,true);
        return page;
    }

}
